home *** CD-ROM | disk | FTP | other *** search
/ Motor Sport Digital Archive Collection 1960s / Motor Sport Digital Archive Collection 1960s.iso / main.swf / scripts / _RadioButtonStyle.as < prev    next >
Encoding:
Text File  |  2008-05-21  |  1.7 KB  |  54 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.RadioButtonIcon;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _RadioButtonStyle
  9.    {
  10.       public function _RadioButtonStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var style:CSSStyleDeclaration = null;
  18.          var fbs:IFlexModuleFactory = param1;
  19.          style = StyleManager.getStyleDeclaration("RadioButton");
  20.          if(!style)
  21.          {
  22.             style = new CSSStyleDeclaration();
  23.             StyleManager.setStyleDeclaration("RadioButton",style,false);
  24.          }
  25.          if(style.defaultFactory == null)
  26.          {
  27.             style.defaultFactory = function():void
  28.             {
  29.                this.selectedDisabledIcon = RadioButtonIcon;
  30.                this.fontWeight = "normal";
  31.                this.selectedOverIcon = RadioButtonIcon;
  32.                this.upSkin = null;
  33.                this.overIcon = RadioButtonIcon;
  34.                this.overSkin = null;
  35.                this.selectedDisabledSkin = null;
  36.                this.selectedDownIcon = RadioButtonIcon;
  37.                this.disabledIcon = RadioButtonIcon;
  38.                this.textAlign = "left";
  39.                this.cornerRadius = 7;
  40.                this.selectedDownSkin = null;
  41.                this.selectedUpSkin = null;
  42.                this.selectedOverSkin = null;
  43.                this.upIcon = RadioButtonIcon;
  44.                this.downSkin = null;
  45.                this.selectedUpIcon = RadioButtonIcon;
  46.                this.disabledSkin = null;
  47.                this.downIcon = RadioButtonIcon;
  48.             };
  49.          }
  50.       }
  51.    }
  52. }
  53.  
  54.